#!/bin/sh

if [ ! -e ../propsideworkspace ]; then
  echo "Folder ../propsideworkspace not found."
  echo ""
  echo "Get ../propsideworkspace one of two ways."
  echo ""
  echo " 1. Get zip or tar.gz propsideworkspace from:"
  echo "   https://code.google.com/p/propsideworkspace/source/browse/"
  echo ""
  echo " 2. hg clone propsideworkspace:"
  echo "   hg clone https://code.google.com/p/propsideworkspace/"
  echo ""
  echo "Unpack the contents to ../propsideworkspace."
  echo ""
  exit 1
fi

cp -rf "../propsideworkspace/My Projects" propcap/workspace
cp -rf "../propsideworkspace/Learn/Simple Libraries" propcap/workspace
mv "propcap/workspace/Simple Libraries" propcap/workspace/Libraries
cp propcap/workspace/examples/* "propcap/workspace/My Projects"

exit 0

